#define _CRT_SECURE_NO_WARNINGS 1
class Solution {
public:
    int xorOperation(int n, int start)
    {
        int ret = 0;
        for (int i = 0; i < n; i++)
        {
            ret ^= (start + i * 2);
        }
        return ret;
    }
};